<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Tolc: app/admin/rte/ajax_remove_page.php File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../tolc_logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Tolc
   &#160;<span id="projectnumber">v 1.00</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
      <li><a href="../../globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d6/dfe/ajax__remove__page_8php.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">ajax_remove_page.php File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="../../d6/dfe/ajax__remove__page_8php_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:ad847b1d5d75085490c4954a4b94521a1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dfe/ajax__remove__page_8php.html#ad847b1d5d75085490c4954a4b94521a1">$isAjax</a></td></tr>
<tr class="separator:ad847b1d5d75085490c4954a4b94521a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2110cc584fcd9b40af2653f0d4379d91"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dfe/ajax__remove__page_8php.html#a2110cc584fcd9b40af2653f0d4379d91">if</a> (!$isAjax)</td></tr>
<tr class="separator:a2110cc584fcd9b40af2653f0d4379d91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f9b22388f15d3d88711f61e7abebbd9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d8/d01/ajax__regional__form_8php.html#a2110cc584fcd9b40af2653f0d4379d91">if</a>(!isset($_SESSION['username']))&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dfe/ajax__remove__page_8php.html#a1f9b22388f15d3d88711f61e7abebbd9">$flag</a> = $_POST['flag']</td></tr>
<tr class="separator:a1f9b22388f15d3d88711f61e7abebbd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8a5a87b9c1a6a0819b88447cbe41877"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dfe/ajax__remove__page_8php.html#aa8a5a87b9c1a6a0819b88447cbe41877">$conn</a> = <a class="el" href="../../d2/d1c/utils__db_8php.html#a9130b08511e6b3e5efd303a8cb48b4e8">get_db_conn</a>($tolc_conf['dbdriver'])</td></tr>
<tr class="separator:aa8a5a87b9c1a6a0819b88447cbe41877"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a551ef6598ee579ef8260e82f06f3d088"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dfe/ajax__remove__page_8php.html#a551ef6598ee579ef8260e82f06f3d088">$a_page</a> = <a class="el" href="../../d6/dfd/utils__cms_8php.html#a0e7b1a668980c1d449a65ae6da0fcecc">get_page</a>($conn, $_SESSION['url'])</td></tr>
<tr class="separator:a551ef6598ee579ef8260e82f06f3d088"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ee0dbecb1c2b92cf425284093e0542d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dfe/ajax__remove__page_8php.html#a2ee0dbecb1c2b92cf425284093e0542d">$www_pages_id</a> = $a_page['page_id']</td></tr>
<tr class="separator:a2ee0dbecb1c2b92cf425284093e0542d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a047170d6020a882807665812a27e2525"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dfe/ajax__remove__page_8php.html#a047170d6020a882807665812a27e2525">$sql</a> = 'UPDATE www_pages SET is_removed = ' . $flag . ' WHERE id=' . $www_pages_id</td></tr>
<tr class="separator:a047170d6020a882807665812a27e2525"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a551ef6598ee579ef8260e82f06f3d088"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$a_page = <a class="el" href="../../d6/dfd/utils__cms_8php.html#a0e7b1a668980c1d449a65ae6da0fcecc">get_page</a>($conn, $_SESSION['url'])</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html#l00032">32</a> of file <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html">ajax_remove_page.php</a>.</p>

</div>
</div>
<a class="anchor" id="aa8a5a87b9c1a6a0819b88447cbe41877"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$conn = <a class="el" href="../../d2/d1c/utils__db_8php.html#a9130b08511e6b3e5efd303a8cb48b4e8">get_db_conn</a>($tolc_conf['dbdriver'])</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html#l00029">29</a> of file <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html">ajax_remove_page.php</a>.</p>

</div>
</div>
<a class="anchor" id="a1f9b22388f15d3d88711f61e7abebbd9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d8/d01/ajax__regional__form_8php.html#a2110cc584fcd9b40af2653f0d4379d91">if</a> (!isset($_SESSION['username'])) $flag = $_POST['flag']</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html#l00026">26</a> of file <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html">ajax_remove_page.php</a>.</p>

</div>
</div>
<a class="anchor" id="ad847b1d5d75085490c4954a4b94521a1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$isAjax</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= isset($_SERVER[<span class="stringliteral">&#39;HTTP_X_REQUESTED_WITH&#39;</span>]) AND</div>
<div class="line">        strtolower($_SERVER[&#39;HTTP_X_REQUESTED_WITH&#39;]) === &#39;xmlhttprequest&#39;</div>
</div><!-- fragment -->
<p>Definition at line <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html#l00006">6</a> of file <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html">ajax_remove_page.php</a>.</p>

</div>
</div>
<a class="anchor" id="a047170d6020a882807665812a27e2525"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$sql = 'UPDATE www_pages SET is_removed = ' . $flag . ' WHERE id=' . $www_pages_id</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html#l00036">36</a> of file <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html">ajax_remove_page.php</a>.</p>

</div>
</div>
<a class="anchor" id="a2ee0dbecb1c2b92cf425284093e0542d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$www_pages_id = $a_page['page_id']</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html#l00033">33</a> of file <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html">ajax_remove_page.php</a>.</p>

</div>
</div>
<a class="anchor" id="a2110cc584fcd9b40af2653f0d4379d91"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">if(!$isAjax)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html#l00008">8</a> of file <a class="el" href="../../d6/dfe/ajax__remove__page_8php_source.html">ajax_remove_page.php</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_d422163b96683743ed3963d4aac17747.html">app</a></li><li class="navelem"><a class="el" href="../../dir_04bb458943ba1ea9da78306bf6170bdc.html">admin</a></li><li class="navelem"><a class="el" href="../../dir_648652d4c91e30e22fa3572c6ab2f89e.html">rte</a></li><li class="navelem"><a class="el" href="../../d6/dfe/ajax__remove__page_8php.html">ajax_remove_page.php</a></li>
    <li class="footer">Generated on Fri Aug 31 2012 22:06:31 for Tolc by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
